package com.pan.admin.module.channel.dao;

import com.pan.admin.module.channel.entity.LoanChannelFlowConfigIPCityPO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 *  渠道流程-IP城市留资持久层
 *
 *  @author ts
 *  @date 2023-09-27
 */
@Mapper
public interface LoanChannelFlowConfigIpCityDao {

    /**
     *  根据渠道获取IP城市留资集合
     *
     *  @param  loanChannelId   渠道id
     *  @return List
     */
    List<LoanChannelFlowConfigIPCityPO> list(Long loanChannelId);

    /**
     *  批量插入该渠道的城市留资项
     *
     *  @param list IP城市留资列表
     */
    void batchInsert(List<LoanChannelFlowConfigIPCityPO> list);

    /**
     *  根据渠道id删除所有IP留资城市
     *
     *  @param loanChannelId    渠道id
     */
    void delete(Long loanChannelId);
}
